package org.nanfang.shuiguo01;

public class MainThald {
    public static void main(String[] args) {

        Box box = new Box();

        BoyThread boy = new BoyThread(box,"张三");
        BoyThread boy1 = new BoyThread(box,"李四");
        BoyThread boy2 = new BoyThread(box,"王五");

        BoxGirl gir = new BoxGirl(box,"小妹");
        BoxGirl gir2 = new BoxGirl(box,"二妹");
        BoxGirl gir3 = new BoxGirl(box,"三妹");

        boy.start();
        boy1.start();
        boy2.start();

        gir.start();
        gir2.start();
        gir3.start();
    }
}
